package com.william.jdbcplus.generator.entity;

import com.william.jdbcplus.common.annotation.Table;
import com.william.jdbcplus.common.annotation.TableColumn;
import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * excel_report_db_field
 *
 * @author niliwei
 * @date 2020-11-23 10:11:00
 */
@Data
@NoArgsConstructor
@Table(value = "excel_report_db_field", remarks = "excel_report_db_field")
public class ExcelReportDbField implements Entity {

    @TableId(value = "id", remarks = "id", type = IdType.ATOMIC, size = 36)
    private String id;

    @TableColumn(value = "create_by", remarks = "创建人登录名称")
    private String createBy;

    @TableColumn(value = "create_time", remarks = "创建日期")
    private Date createTime;

    @TableColumn(value = "update_by", remarks = "更新人登录名称")
    private String updateBy;

    @TableColumn(value = "update_time", remarks = "更新日期")
    private Date updateTime;

    @TableColumn(value = "report_db_id", remarks = "数据源ID", size = 32)
    private String reportDbId;

    @TableColumn(value = "field_name", remarks = "字段名", size = 80)
    private String fieldName;

    @TableColumn(value = "field_text", remarks = "字段文本")
    private String fieldText;

    @TableColumn(value = "widget_type", remarks = "控件类型")
    private String widgetType;

    @TableColumn(value = "widget_width", remarks = "控件宽度", size = 10)
    private Integer widgetWidth;

    @TableColumn(value = "order_num", remarks = "排序", size = 10)
    private Integer orderNum;
}